/* Copyright (C) 2008 Robin Debreuil -- Released under the BSD License */

using System;
using System.Collections.Generic;
using System.CodeDom.Compiler;


namespace SWF
{
	public struct GradientRecord : IRecord
	{
		public byte Ratio;
		public RGBA Color;
		public GradientRecord(SwfReader r, bool useAlpha)
		{
			Ratio = r.GetByte();
			if (useAlpha)
			{
				Color = new RGBA(r.GetByte(), r.GetByte(), r.GetByte(), r.GetByte());
			}
			else
			{
				Color = new RGBA(r.GetByte(), r.GetByte(), r.GetByte());
			}
		}
	}
}
